define([
    "ngController"
],function (appAngular) {

    // 底部按钮先关-可拖动模块-9、定位
    appAngular.directive("bimApiModelLocation", function () {
        return {
            restrict: "EA",
            replace: true,
            template: `<div class="draggable model-location" 
                            style="display: {{(btnsSelect.name=='location' && btnsSelect.check == true)?'block':'none'}}">
						<div class="location-header">
							<h3>定位</h3>
							<div class="dropdown">
								<button class="dropbtn" title="{{modeSection.select}}">
									<span class="dropbtn-text">{{modeSection.select}}</span>
								</button>
								<div class="dropdown-content">
									<a ng-repeat="item in modeSection.coverage" ng-click="modelSectionDropdownSelect(item)">{{item}}</a>
								</div>
							</div>
							<div class="header-img">
								<img ng-src="{{baseUrl + imgZoomUp}}">
								<img ng-src="{{baseUrl + imgDragClose}}" ng-click="modelDragTitleClose()">
							</div>
						</div>
						<div class="location-content">
							<div class="location-demo">
							</div>
							<div class="location-compass">
								<img src="{{baseUrl + imgCompassNorth}}">
							</div>
						</div>
					</div>`,
            link: function ($scope, $elem, attrs) {}
        };
    });

    return appAngular;
});